package cn.i7baozh.cloud.consumer.feign.service;

import cn.i7baozh.cloud.api.dto.PayDTO;
import cn.i7baozh.cloud.api.dto.ReturnResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhangbaoqi532
 * @date 2024/12/26
 */
//value指定服务提供方
@FeignClient(value = "cloud-provider-payment")
public interface RemotePayService {

    @GetMapping(value = "/provider/pay/getServerInfo")
    ReturnResponse<String> getServerInfo();

    @GetMapping(value = "/provider/pay/get/{id}")
    ReturnResponse<PayDTO> get(@PathVariable("id") Integer id);

    @GetMapping(value = "/provider/circuitBreaker/{id}")
    ReturnResponse<String> circuitBreaker(@PathVariable(value = "id") Integer id);
}
